package myservice.android.utilities;

import myservice.android.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ListRow extends LinearLayout {
	
	public Long id;
	public ImageView icon;
	public TextView firstLine, secondLine;

	public ListRow(Context context, AttributeSet attrs) {
		
		super(context, attrs);
		LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.list_row, this, true);
		
		setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
		
		icon = (ImageView) findViewById (R.id.icon);	
		firstLine = (TextView) findViewById (R.id.firstLine);
		secondLine = (TextView) findViewById (R.id.secondLine);	
		
	}
	
	public ListRow(Context context) {
		this(context, null);
	}

}
